#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

#define SIZE 5

void init(int arr[], int size) {
    for (int i = 0; i < size; i++) {
        arr[i] = 0;
    }
}

void print(int arr[], int size) {
    for (int i = 0; i < size; i++) {
        printf("%d ", arr[i]);
    }
    printf("\n");
}

void reverse(int arr[], int size) {
    int start = 0;
    int end = size - 1;
    while (start < end) {
        int temp = arr[start];
        arr[start] = arr[end];
        arr[end] = temp;
        start++;
        end--;
    }
}

int main() {
    int arr[SIZE];

    init(arr, SIZE);
    printf("Initialized array: ");
    print(arr, SIZE);

    arr[0] = 1;
    arr[1] = 2;
    arr[2] = 3;
    arr[3] = 4;
    arr[4] = 5;
    printf("Modified array: ");
    print(arr, SIZE);

    reverse(arr, SIZE);
    printf("Reversed array: ");
    print(arr, SIZE);

    return 0;
}